import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 设备管理
 */
const device: AppRouteModule = {
  path: '/device',
  name: 'Device',
  component: LAYOUT,
  redirect: '/device/deviceList',
  meta: {
    orderNo: 16,
    icon: 'carbon:version',
    title: '设备管理',
  },
  children: [
    {
      path: 'deviceList',
      name: 'DeviceList',
      component: () => import('@/views/device/deviceList/index.vue'),
      meta: {
        title: '设备列表',
      },
    },
    {
      path: 'allocationList',
      name: 'AllocationList',
      component: () => import('@/views/device/deviceAllocation/index.vue'),
      meta: {
        title: '设备流转记录',
      },
    },
  ],
};

export default device;
